// eslint.config.js
import antfu from '@antfu/eslint-config';

export default antfu({
  typescript: true,
  // vue: true,
  react: true,

  stylistic: {
    semi: true,
    indent: 2, // 4, or 'tab'
    quotes: 'single', // or 'double'
  },

  ignores: [
    './src/assets',
  ],
  rules: {
    'no-console': 'off',
    '@typescript-eslint/ban-ts-comment': 'off',
    'ts/no-var-requires': 'off',
    'ts/no-require-imports': 'off',
    'react-refresh/only-export-components': 'off',
  },
  formatters: {
    /**
     * Format CSS, LESS, SCSS files, also the `<style>` blocks in Vue
     * By default uses Prettier
     */
    css: true,
    /**
     * Format HTML files
     * By default uses Prettier
     */
    html: true,
    /**
     * Format Markdown files
     * Supports Prettier and dprint
     * By default uses Prettier
     */
    markdown: 'prettier',
  },
});
